<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="com.model.*" %>  
<%@ page import="com.control.*" %>    

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
request.setCharacterEncoding("UTF-8");
int course_id = Integer.parseInt(request.getParameter("course_id"));
//System.out.println("course_id="+course_id);
CourseControl cc = new CourseControl();
if(cc.updateLock(1,course_id))
{
	%>
	<script>
	if(window.confirm("提交成功"))
		window.location.href="Score_Info_show.jsp";
	else
		window.location.href="Score_Info_show.jsp";
	</script>
	<%}else{ %>
	<script>
	alert("提交失败");
	window.location.href="Score_info_show.jsp";
	</script>
	<%}

	%>


</body>
</html>